<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="org.i1510.common.utils.WebProperties"%>
<%@ page import="org.i1510.common.utils.KBProperties"%>
<script type="text/javascript">
console.log("<%out.print(WebProperties.CONSOLE_LOG);%>");
var i1510 = {
		'contextPath' :'${pageContext.request.contextPath}',
		'shortcutIcon' : '${pageContext.request.contextPath}/common/images/favicon.ico',
		'webTitle':'<%out.print(WebProperties.WEBTITLE);%>',
		'sessionOutUrl' : '<%out.print(KBProperties.TIMEOUT_URL);%>',
		'sessionOutMes' : '[timeout]您登陆已经超时，请重新登陆!',
		'curUser':'${sessionScope.userSession.sysUser.nickName}',
		'curCompany':'${sessionScope.userSession.sysUser.company}'
	};
	var auditObj = new Object();
	auditObj["00"] = "废弃";
	auditObj["10"] = "草稿";
	auditObj["11"] = "驳回";
	auditObj["20"] = "待审";
	auditObj["21"] = "沟通";
	auditObj["22"] = "催办";
	auditObj["30"] = "通过";
	auditObj["40"] = "发布";
	//格式化 审批操作
	function fn_audit(cellvalue) {
		var temp = auditObj[cellvalue];
		return temp != null ? temp : "禁用.";

	}
	//*********标准状态 Start
	var statusObj = new Object();
	statusObj["00"] = "禁用";
	statusObj["10"] = "激活";
	//格式化 标准状态 00:禁用 10:激活
	function fn_docStatus(cellvalue){
		var temp = statusObj[cellvalue];
		return temp != null ? temp : "禁用.";
	    
	}
	//格式化 标准状态 00:禁用 10:激活 扩展功能：提供Ext框架调用
	function fn_docStatusExt(cellvalue){
		var temp = statusObj[cellvalue];
		return temp != null ? temp : "禁用.";
	    
	}
	//*********标准状态 End
	//*********是否状态 Start
	var booleanObj = new Object();
	booleanObj["00"] = "否";
	booleanObj["10"] = "是";
	//格式化 标准状态 00:否 10:是
	function fn_booleanExt(cellvalue){
		var temp = booleanObj[cellvalue];
		return temp != null ? temp : "否.";
	    
	}
	//*********是否状态 End
	
	
	//SELECT 选择框
	//selId:选择框ID
	function fn_selAudit(selId) {
		for(var key in auditObj) {
			$(selId).append(
					"<option value='"+key+"'>"
							+ auditObj[key] + "</option>");
		}
	}

	var actionObj = new Object();
	actionObj["00"] = "审批节点";
	actionObj["10"] = "机器人节点";
	actionObj["20"] = "分支节点";
	actionObj["30"] = "抄送节点";
	//格式化 节点动作
	function fn_action(cellvalue){
		var temp = actionObj[cellvalue];
		return temp != null?temp:"禁用.";
	    
	}
	//selId:选择框ID
	function fn_selAction(selId) {
		for(var key in actionObj) {
			$(selId).append(
					"<option value='"+key+"'>"
							+ actionObj[key] + "</option>");
		}
	}
</script>
<link rel="shortcut icon" href="${pageContext.request.contextPath}/common/images/favicon.ico" type="image/x-icon" />
